@import './base.css';

* {
  margin: 0;
  padding: 0;
}

canvas {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

body {
  width: 100vw;
  height: 100vh;
}

#app {
  color: black;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-weight: normal;
  overflow-y: auto;
  box-sizing: border-box;
  /* 确保内边距不会影响总宽度 */

}

#app .set {
  width: 300px;
  height: 400px;
  position: absolute;
  top: 0;
  left: 0;
  padding: 2rem;
  background-color: #fff;
  z-index: 10;
  /* 设置一个较高的 z-index 值 */
  overflow: auto;
}

#app .set .connect {
  width: 80px;
  /* display: flex; */
  justify-content: space-between;
  /* 左右间距 */
  margin: 0 1rem 0 1rem;
  /* 设置左右间距 */
}

#app .set .disconnect {
  width: 80px;
  /* display: flex; */
  justify-content: space-between;
  /* 左右间距 */
  /* margin: 0 1rem; */
  /* 设置左右间距 */
}

#app .test {
  color: red;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.publish-btn {
  /* width: 80px; */
  /* margin: 0 2rem; */
  text-align: center;
  /* 居中对齐 */
  font-size: 16px;
  /* 字体大小 */
  padding: 4px 4px;
  cursor: pointer;
  /* 鼠标指针 */
  border-radius: 4px;
  /* 圆角边框 */
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
  }

  #app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
  }
}